//
//  TopView.m
//  SAT_NET
//
//  Created by lanou3g on 16/3/7.
//  Copyright © 2016年 郭丹. All rights reserved.
//

#import "TopView.h"

@implementation TopView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews {
    
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 64, kScreenW, kScreenH - 64) style:(UITableViewStylePlain)];
    [self addSubview:self.tableView];
    
    self.bottomLable = [[UILabel alloc] initWithFrame:CGRectMake((kScreenW / 2) - 30, kScreenH - 50, 60, 20)];
    self.bottomLable.backgroundColor = [UIColor grayColor];
    self.bottomLable.textColor = [UIColor whiteColor];
    self.bottomLable.font = [UIFont systemFontOfSize:14];
    self.bottomLable.hidden = YES;
    self.bottomLable.textAlignment = NSTextAlignmentCenter;
    self.bottomLable.layer.cornerRadius = 10;
    self.bottomLable.layer.masksToBounds = YES;
    self.bottomLable.alpha = 0.7;
    [self addSubview:self.bottomLable];
    
    
}

@end
